#ifndef WALK_STEP_COUNTER_H
#define WALK_STEP_COUNTER_H

#include <Arduino.h>


#define WSC_DATA_IN_PIN 2

static uint16_t walk_step_counter = 0; 

static int walk_step_delay = 50;

void walk_step_counter_setup()
{
    pinMode(WSC_DATA_IN_PIN, INPUT);
}

void walk_step_counter_loop()
{
    if(digitalRead(WSC_DATA_IN_PIN)==1)
    {
        walk_step_counter ++;
        delay(walk_step_delay);
    }
    Serial.println(digitalRead(WSC_DATA_IN_PIN));
}


#endif //WALK_STEP_COUNTER_H
